package com.demo.modules.test.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户
 *
 * @author molong
 * @since 2024/6/26
 */
@Data
@ApiModel(description="用户")
@TableName(value = "ums_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "名称")
    private String username;

    /**
     * 性别 0：女；1：男
     */
    @ApiModelProperty(value = "性别 0：女；1：男")
    private Integer sex;

    @ApiModelProperty(value = "数据时间")
    private LocalDateTime dataTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

}
